﻿@using WebEntities.Models.Framework;

@model Member

@{
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
    <title>用户登录信息</title>
    <link href="/Content/home.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" id="infotab">
      <tr>
        <td rowspan="4" class="headimg">
            @{string headpic = string.IsNullOrWhiteSpace(Model.HeadPic) ? "/Images/nohead.jpg" : Model.HeadPic;
            <img src="@headpic" onerror="this.src='/Images/nohead.jpg'" />
            }
        </td>
        <th>用户ID：</th>
        <td>@Model.MemberID</td>
        <th>创建时间：</th>
        <td>@Model.CreateTime</td>
      </tr>
      <tr>
        <th>用户昵称：</th>
        <td>@Model.NickName</td>
        <th>上次登录时间：</th>
        <td>@Session["LastLoginTime"]</td>
      </tr>
      <tr>
        <th>电子邮箱：</th>
        <td>@Model.Email</td>
        <th>登录次数：</th>
        <td>@Model.LoginCount</td>
      </tr>
      <tr>
        <th>用户类型：</th>
        <td>
            @switch (Model.MemType)
            {
                case (byte)MemberType.Website:
                    <span>网站会员</span>
                    break;
                case (byte)MemberType.Union:
                    <span>协会会员</span>
                    break;
                case (byte)MemberType.WebAdmin:
                    <span>网站管理员</span>
                    break;
            }
        </td>
        <th>用户状态：</th>
        <td>
            @switch (Model.MemStatus)
            {
                case 1:
                    <span>活动</span>
                    break;
                case 2:
                    <span>冻结</span>
                    break;
            }
        </td>
      </tr>
    </table>
</body>
</html>
